package com.code.chatroom.client

import io.netty.channel.ChannelHandlerContext
import io.netty.channel.SimpleChannelInboundHandler

/**
 * 客户端业务处理器
 */
class ClientHandler : SimpleChannelInboundHandler<String>() {
    /**
     * 当接收到服务器发送的消息时
     */
    override fun channelRead0(ctx: ChannelHandlerContext, msg: String) {
        println(msg.trim())
    }
}